package com.quanyan.club.service;

import com.quanyan.club.entity.db.TbClubExperienceHistory;
import com.quanyan.club.entity.vo.resp.RespExperienceParameter;

/**
 * Created by Administrator on 2016/7/22.
 *
 * 俱乐部经验等级Service
 */
public interface ClubXpLevelService {
    /**
     * 根据经验参数名称获取经验记录
     *
     * @param expName
     * @return
     */
     RespExperienceParameter getExperienceParameter(String expName);

    /**
     *
     * @param expName
     * @param clubId
     * @return
     */
    boolean isExistClubExperienceHistory(String expName,Integer clubId);

    /**
     *
     * @param clubExpHistory
     */
    void insertClubExperienceHistory(TbClubExperienceHistory clubExpHistory);

    /**
     *
     * @param expName
     * @return
     */
    Integer countByCurDate(String expName, Integer clubId);

    /**
     *  更新俱乐部经验等级
     * @param clubId
     * @param exp
     */
    void modifyClubExperience(Integer clubId, Integer exp);
}
